obj-m += inode.o

#inode-objs += file-mmu.o

DEBUG = 

ifdef EBUG
DEBUG += --debug=v
endif


all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules -I /usr/src/linux-headers-$(shell uname -r)/include -I /usr/include -I newserver/includes $(DEBUG)

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

ins:	all
	sudo insmod inode.ko
	lsmod | grep inode

rm:
	sudo rmmod inode

mnt:
	sudo mount -t testfs none here
	sudo chown blop here

umnt:
	sudo umount here

log:
	dmesg | grep testfs

logrm:
	sudo rm /var/log/messages

re:	umnt rm log ins mnt
